import os

curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0]

# 测试报告模版
ReportTemplate = 'hruntools/report/extent-theme-template.html'
# 测试报告扩展模版
ReportTemplatex = 'hruntools/report/templatex.html'

# =========运行设定
# 程序 rootPath
# 工作目录
workDir = ''

# 报告URL
report_url = ''

# 扩展报告模式
extend_report_type = False

# 日志级别
log_level = 'INFO'

def set_WorkDir(workdir = ''):
    global workDir
    workDir = os.path.dirname(os.path.abspath(__file__)) if workdir == '' else workdir
    return workDir